package com.warm.demo.convert;

import com.warm.demo.api.dto.TestLeaveDto;
import com.warm.demo.api.vo.TestLeaveVo;
import com.warm.demo.domain.TestLeave;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * OA 请假申请对象转换器
 *
 * @author warm
 */
@Mapper
public interface TestLeaveC {

    TestLeaveC testLeaveC = Mappers.getMapper(TestLeaveC.class);

    TestLeave convert(TestLeaveDto dto);

    TestLeaveVo convert(TestLeave entity);

}
